<?php

class SetToneEvt extends BaseUpdateEvt
{
	function __construct($portalAccount, $portalPwd, $portalType, $moduleCode, $role, $roleCode, 
						 $calledUserID, $toneBoxID, $resourceType, $setType, $callerNumber,  
						 $loopType, $timeType, $startTime, $endTime)
	 {

	 	parent::__construct($portalAccount, $portalPwd, $portalType, $moduleCode, $role, $roleCode);
	 	
	 	$this->calledUserID			= $calledUserID;	 	
	 	$this->toneBoxID			= $toneBoxID;
	 	$this->resourceType 		= $resourceType;	 	
	 	$this->setType				= $setType;
	 	$this->callerNumber			= $callerNumber;
	 	$this->loopType				= $loopType;
	 	$this->timeType				= $timeType;
	 	$this->startTime			= $startTime;
	 	$this->endTime				= $endTime;	 				
	 }
	 
	 public $calledUserType;
	 public $calledUserID;
	 public $overlayFlag;
	 public $toneBoxID;
	 public $resourceType;
	 public $setType;
	 public $callerNumber;
	 public $loopType;
	 public $timeType;
	 public $startTime;
	 public $endTime;
	 public $toneType;
	 public $setMode;
	 public $description;
}

class DelSettingEvt extends BaseUpdateEvt
{
	function __construct($portalAccount, $portalPwd, $portalType, $moduleCode, $role, $roleCode, 
						 $calledUserID, $calledUserType, $settingID)
						 {
						 	parent::__construct($portalAccount, $portalPwd, $portalType, $moduleCode, $role, $roleCode);
						 	
						 	$this->calledUserType		= $calledUserType;
	 						$this->calledUserID			= $calledUserID;
	 						$this->settingID			= $settingID;
						 }
						 
	public $calledUserType;
	public $calledUserID;
	public $settingID;
	
}

class EditSettingEvt extends BaseUpdateEvt
{
	function __construct($portalAccount, $portalPwd, $portalType, $moduleCode, $role, $roleCode, 
						 $calledUserID, $settingID, $toneBoxID, $resourceType, $setType, $callerNumber,  
						 $loopType, $timeType, $startTime, $endTime)
	 {

	 	parent::__construct($portalAccount, $portalPwd, $portalType, $moduleCode, $role, $roleCode);
	 	
	 	$this->calledUserType		= $calledUserType;
	 	$this->calledUserID			= $calledUserID;
	 	$this->settingID			= $settingID;	 	
	 	$this->toneBoxID			= $toneBoxID;
	 	$this->resourceType			= $resourceType;
	 	$this->setType				= $setType;
	 	$this->callerNumber			= $callerNumber;
	 	$this->loopType				= $loopType;
	 	$this->timeType				= $timeType;
	 	$this->startTime			= $startTime;
	 	$this->endTime				= $endTime;	 				
	 }
	 
	 public $calledUserType;
	 public $calledUserID;
	 public $overlayFlag;
	 public $toneBoxID;
	 public $resourceType;
	 public $setType;
	 public $callerNumber;
	 public $loopType;
	 public $timeType;
	 public $startTime;
	 public $endTime;	 	 
	 public $description;
}

class QuerySettingEvt extends BaseEvt 
{
	function __construct($portalAccount, $portalPwd, $portalType, $calledUserType, $calledUserID, $setType = null, $timeType = null, $toneType = null, $setMode = null)
	{
		parent::__construct($portalAccount, $portalPwd, $portalType);
		
		$this->calledUserType		= $calledUserType;
	 	$this->calledUserID			= $calledUserID;
	 	$this->setType				= $setType;
	 	$this->timeType				= $timeType;
	 	$this->toneType				= $toneType;
	 	$this->setMode				= $setMode;
	 		
	}
	
	public $calledUserType;
	public $calledUserID;
	public $setType;
	public $timeType;	
	public $toneType;
	public $setMode;
	
}

class QuerySettingResp extends BaseQueryResp
{
	
	public $settingInfos;
}

class SettingInfo{
	
	public $settingID;
	
	public $setType;
	
	public $callerNumber;
	
	public $callerName;
	
	public $loopType;
	
	public $timeType;
	
	public $startTime;
	
	public $endTime;
	
	public $offset;
	
	public $resourceType;
	
	public $toneBoxID;
	
	public $setTime;
	
	public $status;
	
	public $toneType;
	
	public $setMode;
	
	public $description;
	
	public $priority;

}



?>